* {
    padding: 0;
    margin: 0;
}

::-webkit-scrollbar {
    /* width: 0; */
}
.wrapper {
    margin: 0 auto;
    width: 600px;
    background-color: #eee;
    position: relative;
    height: 100vh;
}

.header-name {
    line-height: 40px;
    text-align: center;
    background-color: grey;
    color: #fff;
}


.content {
    /* height: calc(100vh - 90px); */
    width: 100%;
    position: absolute;
    top: 40px;
    bottom: 50px;
    overflow-y: scroll;
}
.footer {
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    text-align: center;
    line-height: 50px;
    background-color: rgb(221, 221, 221);
}
.avator {
    width: 30px;
    height: 30px;
}

.mine {
    float: right;
    width: 60%;
    margin: 10px;
}
.robot {
    float: left;
    width: 60%;
    margin-left: 10px;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.mine .avator {
    float: right;
}
.mine .text {
    float: right;
    background-color: greenyellow;
}
.robot .avator {
    float: left;
}
.robot .text {
    float: left;
    background-color: #fff;
}
.text {
    line-height: 30px;
    /* 设置最大的宽度 */
    max-width: 80%;
    margin: 0 5px;
    padding: 0 10px;
    border-radius: 5px;
    position: relative;
    word-break: break-all;
}

.text::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    position: absolute;
    top: 10px;
}

.mine .text::after {
    border-left-color: greenyellow;
    right: -10px;
   
}
.robot .text::after {
    border-right-color: #fff;
    left: -10px;
}
#message {
    width: 500px;
    height: 30px;
    padding: 0 3px;
    border: none;
    outline: none;
}
#send {
    width: 80px;
    height: 30px;
    vertical-align: middle;
}